﻿using QQ2564874169.Miniblink;
using QQ2564874169.Miniblink.ResourceLoader;
using System;
using System.Resources;
using System.Windows.Forms;

namespace FCRE
{
    public partial class Splash : MiniblinkForm
    {
        private FrmMain fm = null;
        public Splash(FrmMain f) :base(true)
        {
            InitializeComponent();
            ShowInTaskbar = false;
            View.ResourceLoader.Add(new EmbedLoader(typeof(FrmMain).Assembly, "web", "loc.res"));
            fm = f;
        }
        [NetFunc]
        private void closeSplash()
        {
            this.Close();
        }

        private void Splash_Load(object sender, EventArgs e)
        {
            Width = 600;
            Height = 320;
            ShowInTaskbar = false;
            View.LoadUri("http://loc.res/splash.html");
        }

        private void Splash_FormClosing(object sender, FormClosingEventArgs e)
        {
            fm.Opacity = 1;

        }
    }
}
